import type { Course, User, Ytime } from '@/type'

export const courses: Course[] = [
  // 1课时 = 1节课
  { cid: 1, uid: 1, name: 'Java程序设计', hours: 14, ctype: '必修', remainhours: 0 },
  { cid: 2, uid: 1, name: 'Web开发技术', hours: 12, ctype: '选修', remainhours: 0 },
  { cid: 3, uid: 2, name: 'Web系统框架', hours: 12, ctype: '选修', remainhours: 0 }
]

export const users: User[] = [
  { uid: 1, name: 'admin', password: 'admin' },
  { uid: 2, name: '1001', password: '1001' },
  { uid: 3, name: '1002', password: '1002' },
  { uid: 4, name: '1003', password: '1003' },
  { uid: 5, name: '1004', password: '1004' },
  { uid: 6, name: '1005', password: '1005' }
]

export const ytimes: Ytime[] = [
  {
    uid: 1, //老师id
    cid: 1, // 课程id
    tname: 'admin', //老师名字
    cname: 'Java程序设计', //课程名字
    room: '905', //实验室
    start: 1, //开始周
    end: 5, //结束周
    day: '星期二', //周几上课
    time: [3, 4] //课程时间，第几节到第几节
  },
  {
    uid: 1, //老师id
    cid: 2, // 课程id
    tname: 'admin', //老师名字
    cname: 'Web开发技术', //课程名字
    room: '906', //实验室
    start: 1, //开始周
    end: 6, //结束周
    day: '星期二', //周几上课
    time: [5, 6] //课程时间，第几节到第几节
  },
  {
    uid: 1, //老师id
    cid: 1, // 课程id
    tname: 'admin', //老师名字
    cname: 'Java程序设计', //课程名字
    room: '905', //实验室
    start: 7, //开始周
    end: 8, //结束周
    day: '星期二', //周几上课
    time: [7, 8] //课程时间，第几节到第几节
  },
  {
    uid: 2, //老师id
    cid: 3, // 课程id
    tname: '1001', //老师名字
    cname: 'Web系统框架', //课程名字
    room: '907', //实验室
    start: 5, //开始周
    end: 10, //结束周
    day: '星期二', //周几上课
    time: [3, 4] //课程时间，第几节到第几节
  }
]
